﻿// -----------------------------------------------------------------------
// <copyright file="IPluralRules.cs" company="Moveax, LLC">
// Copyright (c) 2013 Andrey Veselov. All rights reserved.
// License:  Microsoft Public License (MS-PL)
// Contacts: http://andrey.moveax.com andrey@moveax.com
// </copyright>
// -----------------------------------------------------------------------

namespace Moveax.Pluralization.Core
{
    /// <summary> Rules to get pluralization category. </summary>
    public interface IPluralRules
    {
        /// <summary>Gets the two letter language code in lowercase.</summary>
        string LanguageCode { get; }

        /// <summary>Gets the category for specified value.</summary>
        /// <param name="value">The value.</param>
        /// <returns>The category for specified value.</returns>
        PluralCategory GetCategoryFor(int value);

        /// <summary>Gets the category for specified value.</summary>
        /// <param name="value">The value.</param>
        /// <returns>The category for specified value.</returns>
        PluralCategory GetCategoryFor(float value);
    }
}
